package com.zjmzxfzhl.integrityconstraint.config;

import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 业务完整性验证配置类
 *
 * @author 庄金明
 */
@Data
@Accessors(chain = true)
@ConfigurationProperties(prefix = "integrity-constraint.properties")
public class IntegrityConstraintProperties {

    /**
     * 缓存超时时间
     */
    private Long expire = 900L;

    /**
     * 主完整性验证的实现类resilience4j.circuitbreaker.configs下的配置属性
     */
    private String primaryCircuitBreakerConfig = "integrityConstraintConfig";

    /**
     * 备用完整性验证的实现类beanId
     */
    private String spareIntegrityConstraintService = "jdbcIntegrityConstraintService";

    /**
     * 验证未通过提示信息
     */
    private String errorMessage = "验证信息已超时，请重新发起业务。";

}
